package com.csy.admin.util;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * 类名:MD5加密工具类
 * Created by CSY on 2018/9/7.
 */
public class Md5HashUtil {
    public final static String SALT="CSY";
    public static String Md5Hash(String password){
        Md5Hash md5Hash = new Md5Hash(password,SALT);
        return md5Hash.toString();
    }

    public static void main(String[] args) {
        System.out.println(Md5Hash("123"));
    }
}
